package com.example.espect.controllers;

import com.example.espect.beans.Mybean;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description
 * @Author ext.shengsongtao
 * @Date 2020-10-09 11:17
 */
@RestController
public class MyController {
    @Resource
    private Mybean mybean;
    @RequestMapping
    public String hello(){
        mybean.doTrans();
        return "h";
    }
}
